package com.xcity.pomelo.response;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@Deprecated
@PomeloMessage(type = Message.Type.RESPONSE)
public class PVEAttackResponse extends Response {
	
	private byte result; // 攻击结果(0:失败,1:成功)
	private long eid;
	private int skillId; // 释放的技能id
	private int hp; // 自己剩余血量
	private int enemyHp; // 敌方剩余血量
	private String cause; // 失败原因(result=0时)
	private int attack; // 己方攻击力(如果有这个属性，则需要修正角色当前攻击力。如：技能“猛攻"生效3次后，角色攻击力会降回初始值),
	private int enemyAttack; // 敌方攻击力（预留字段，暂时不用）
	private byte syncStep; // 通知客户端接下来每移动一次棋子是否需要告知服务器（即是否发送协议：stageMvBlock）（0: 否,1:是）,如：技能“治愈”生效后
	
	public PVEAttackResponse(int serial, boolean succ, long eid, int skillId, int hp, int enemyHp, String cause, int attack, int enemyAttack, boolean syncStep) {
		super(serial);
		this.result = (byte) (succ ? 1 : 0);
		this.eid = eid;
		this.skillId = skillId;
		this.hp = hp;
		this.enemyHp = enemyHp;
		this.cause = cause;
		this.attack = attack;
		this.enemyAttack = enemyAttack;
		this.syncStep = (byte) (syncStep ? 1 : 0);
	}
	
	public byte getResult() {
		return result;
	}

	public void setResult(byte result) {
		this.result = result;
	}

	public long getEid() {
		return eid;
	}

	public void setEid(long eid) {
		this.eid = eid;
	}

	public int getSkillId() {
		return skillId;
	}

	public void setSkillId(int skillId) {
		this.skillId = skillId;
	}

	public int getHp() {
		return hp;
	}

	public void setHp(int hp) {
		this.hp = hp;
	}

	public int getEnemyHp() {
		return enemyHp;
	}

	public void setEnemyHp(int enemyHp) {
		this.enemyHp = enemyHp;
	}

	public String getCause() {
		return cause;
	}

	public void setCause(String cause) {
		this.cause = cause;
	}

	public int getAttack() {
		return attack;
	}

	public void setAttack(int attack) {
		this.attack = attack;
	}

	public int getEnemyAttack() {
		return enemyAttack;
	}

	public void setEnemyAttack(int enemyAttack) {
		this.enemyAttack = enemyAttack;
	}

	public byte getSyncStep() {
		return syncStep;
	}

	public void setSyncStep(byte syncStep) {
		this.syncStep = syncStep;
	}
	
}
